package com.drug.mingkang.permission.controller;

import com.drug.mingkang.permission.model.PerUserRole;
import com.drug.mingkang.permission.service.PerUserRoleService;
import org.springframework.web.bind.annotation.*;

import javax.annotation.Resource;

/**
 * 用户角色表(PerUserRole)表控制层
 *
 * @author wenchangjian
 * @since 2020-08-11 12:00:14
 */
@RestController
@RequestMapping("perUserRole")
public class PerUserRoleController {
    /**
     * 服务对象
     */
    @Resource
    private PerUserRoleService perUserRoleService;

    /**
     * 通过主键查询单条数据
     *
     * @param id 主键
     * @return 单条数据
     */
    @GetMapping("selectOne")
    public PerUserRole selectOne(Integer id) {
        return this.perUserRoleService.queryById(id);
    }

}